package com.zxy.employee.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDate;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class EmployeeData {


    @ExcelProperty("姓名")
    private String employeeName;

    @ExcelProperty(value = "性别", converter = GenderConverter.class)
    private Boolean  gender;

    @ExcelProperty(value = "部门编号")
    private Integer deptId;

    @ExcelProperty(value = "状态",converter = EmployStatusConverter.class)
    private Boolean employStatus;

    @ExcelProperty("联系电话")
    private String phone;

    @ExcelProperty("身份证号")
    private String idCard;

    @ExcelProperty("出生日期")
    @DateTimeFormat("yyyy年MM月dd日")
    private Date birthday;

    @ExcelProperty(value = "婚姻状态", converter = MarryStatusConverter.class)
    private Boolean employeeMarryStatus;

    @ExcelProperty("邮箱")
    private String email;

    @ExcelProperty("地址")
    private String address;

    @ExcelProperty("爱好")
    private String hobby;

    @ExcelProperty("备注")
    private String remark;
}
